package com.lmk.mkcc.feign;

import com.lmk.mkcc.domain.User;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserServiceFallbackFactory implements FallbackFactory<UserService> {

    @Override
    public UserService create(Throwable throwable) {
        return new UserService() {
            @Override
            public List<User> listByIds(List<Long> ids) {
                return null;
            }
        };
    }
}
